﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 地图新增
    /// </summary>
    public class MapCrInput
    {
        /// <summary>
        /// 地图编码
        /// </summary>
        [Required(ErrorMessage = "地图编码不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 地图名称
        /// </summary>
        [Required(ErrorMessage = "地图名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Required(ErrorMessage = "排序码不能为空")]
        public long? sortCode { get; set; }
        /// <summary>
        /// 状态(1-可用,0-禁用)
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public int? enabledMark { get; set; }
        /// <summary>
        /// 地图数据
        /// </summary>
        [Required(ErrorMessage = "地图数据不能为空")]
        public string data { get; set; }
    }
}
